<?php
 Session_Start () ;
 Include ("../../include/garennes.cfg") ;
 Include ("../../include/init.php") ;
 Include ("../include/config.inc") ;
 verif_droits ($droit_courant, $_SESSION ["code"]) ;
 
 $resultats = SQL_commande ("SELECT * FROM menus WHERE numero='".$droit_courant."' AND ordre='0'", $id_sql) ;
 $l = SQL_tableau_associatif ($resultats, "") ; 
 
 Echo "<HTML>\n" ;
 Echo " <HEAD>\n" ;
 entete_html ("Garennes", "", 0) ;
 Echo styles ("none", "none", "none", $l ["couleur_fond"], "none") ;
 Echo " </HEAD>\n" ;
 
 Echo " <FRAMESET ROWS=\"23,*\" FRAMEBORDER=\"0\" BORDER=\"0\">\n" ;
 Echo "  <FRAME SRC=\"./status.php\" NAME=\"travail_status\" NORESIZE SCROLLING=\"NO\" MARGINHEIGHT=\"0\" MARGINWIDTH=\"0\" FRAMEBORDER=\"0\">\n" ;
 If (IsSet ($mode))
  {
   Switch ($mode)
    {
     Case  3 : Echo "  <FRAME SRC=\"./trombinoscope.php?id_classe=".$id_classe."&titre=1\" NAME=\"travail_affichage\" MARGINHEIGHT=\"0\" MARGINWIDTH=\"0\" SCROLLING=\"AUTO\" FRAMEBORDER=\"0\">\n" ;
               Break ;
     Case  4 : Echo "  <FRAME SRC=\"./trombinoscope_prof.php?id_classe=".$id_classe."&titre=1\" NAME=\"travail_affichage\" MARGINHEIGHT=\"0\" MARGINWIDTH=\"0\" SCROLLING=\"AUTO\" FRAMEBORDER=\"0\">\n" ;
               Break ;
     Default : Echo "  <FRAME SRC=\"./travail.php?id_classe=".$id_classe."\" NAME=\"travail_affichage\" MARGINHEIGHT=\"0\" MARGINWIDTH=\"0\" SCROLLING=\"AUTO\" FRAMEBORDER=\"0\">\n" ;
               Break ;
    }
  }
 Else
  {
   Echo "  <FRAME SRC=\"./travail.php?id_classe=".$id_classe."\" NAME=\"travail_affichage\" MARGINHEIGHT=\"0\" MARGINWIDTH=\"0\" SCROLLING=\"AUTO\" FRAMEBORDER=\"0\">\n" ;
  }
 Echo " </FRAMESET>\n" ;
 Echo "</HTML>\n" ;
?>